<?php
/* @var $this MstPerusahaanAsuransiController */
/* @var $model MstPerusahaanAsuransi */
?>

<?php
$this->breadcrumbs=array(
	'Mst Perusahaan Asuransis'=>array('index'),
	$model->name,
);


?>

<h1>Lihat Perusahaan Asuransi</h1>

<?php $this->widget('zii.widgets.CDetailView',array(
    'htmlOptions' => array(
        'class' => 'table table-striped table-condensed table-hover',
    ),
    'data'=>$model,
    'attributes'=>array(
		'no_insurance',
		'name',
		'address',
		array(
			'name'=>'province_id',
			'value'=>MstPropinsi::model()->findByPk($model->province_id)->nm_propinsi,
			),
		array(
			'name'=>'city_id',
			'value'=>MstCity::model()->findByPk($model->city_id)->nm_city,
			),
		'zip_code',
		'phone',
		'fax',
	),
)); ?>
<br />
<h4>Detail Bank Account</h4>

<div class="row">

<?php
					$perusahaanAsuransiAccount = MstPerusahaanAsuransiAccount::model()->findAll('mst_perusahaan_id='.$model->id.' order by id');
					$j = 1;
					foreach($perusahaanAsuransiAccount as $row){
				?>
				
				<div class="col-md-4">
						<div class="widget box">
							<div class="widget-header">
								<h4><i class="icon-reorder"></i> Bank Account <?php echo $j ?></h4>
							</div>
							<div class="widget-content">
								<div class="control-group">
									<label class="control-label" for="MstClient_city_id">Nomor Rekening:</label>
									<div class="controls">
										<input id="MstClient_city_id" class="form-control" type="hidden" name="id_account[]" value="<?php echo $row->id; ?>">
										<input id="MstClient_city_id" class="form-control" type="text" readonly="readonly" name="account_number[]" value="<?php echo $row->account_number; ?>">
									</div>
								</div>
								
								<div class="control-group">
									<label class="control-label" for="MstClient_city_id">Nama Rekening:</label>
									<div class="controls">
										<input id="MstClient_city_id" class="form-control" type="text" readonly="readonly" name="account_name[]" value="<?php echo $row->account_name; ?>">
									</div>
								</div>
								
								<div class="control-group">
									<label class="control-label" for="MstClient_city_id">Nama Bank:</label>
									<div class="controls">
										<input id="MstClient_city_id" class="form-control" type="text" readonly="readonly" name="bank_name[]" value="<?php echo $row->bank_name; ?>">
									</div>
								</div>
								
								<div class="control-group">
									<label class="control-label" for="MstClient_city_id">Cabang:</label>
									<div class="controls">
										<input id="MstClient_city_id" class="form-control" type="text" readonly="readonly" name="branch[]" value="<?php echo $row->branch; ?>">
									</div>
								</div>
									
								<div class="control-group">
										<label class="control-label" for="MstClient_city_id">Jenis Mata Uang:</label>
										<div class="controls">
											<input id="MstClient_city_id" class="form-control" type="text" readonly="readonly" name="currency[]" value="<?php echo MstCurrency::model()->findByPk($row->currency_id)->name; ?>">
										</div>
								</div>
									
							</div>
						</div>
					</div>
					<!-- /Validation Example 2 -->

				<?php
				$j = $j+1;
				}
				?>

</div>
